package com.cat.dataStructure03;

/**
 * @author 曲大人的喵
 * @description https://leetcode.cn/problems/minimum-operations-to-make-array-equal/
 * @create 2025/11/8 09:59
 * @since JDK17
 */

public class Solution20 {
    public int minOperations(int n) {
        int ans = 0;
        for (int i = 1; i < n; i += 2) {
            ans += n - i;
        }

        return ans;
    }
}
